package IMIC.NGUYENVANDOAN.THREAD_DEMO.SAMPLE01;

public class ImpleRunable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++)
            try {
                Thread.sleep(2000);
                System.out.println("i = " + i);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
    }

    public static void main(String[] str) {
        Thread objT = new Thread(new ImpleRunable(), "Thread demo");
        objT.start();
    }

}
